package com.campus_information_portal.entity;


/**
 * @author Y-Rainson
 * @create 2018-03-31 23:06
 **/

public class Question {
    private int questionId;
    private Integer termId;
    private String questionOne;
    private String questionTwo;
    private String questionThree;
    private String questionFour;
    private String questionFive;
    private String questionSix;
    private String questionSeven;
    private String questionEight;
    private String questionNine;
    private String questionTen;


    public int getQuestionId() {
        return questionId;
    }

    public void setQuestionId(int questionId) {
        this.questionId = questionId;
    }


    public Integer getTermId() {
        return termId;
    }

    public void setTermId(Integer termId) {
        this.termId = termId;
    }


    public String getQuestionOne() {
        return questionOne;
    }

    public void setQuestionOne(String questionOne) {
        this.questionOne = questionOne;
    }


    public String getQuestionTwo() {
        return questionTwo;
    }

    public void setQuestionTwo(String questionTwo) {
        this.questionTwo = questionTwo;
    }


    public String getQuestionThree() {
        return questionThree;
    }

    public void setQuestionThree(String questionThree) {
        this.questionThree = questionThree;
    }


    public String getQuestionFour() {
        return questionFour;
    }

    public void setQuestionFour(String questionFour) {
        this.questionFour = questionFour;
    }


    public String getQuestionFive() {
        return questionFive;
    }

    public void setQuestionFive(String questionFive) {
        this.questionFive = questionFive;
    }


    public String getQuestionSix() {
        return questionSix;
    }

    public void setQuestionSix(String questionSix) {
        this.questionSix = questionSix;
    }


    public String getQuestionSeven() {
        return questionSeven;
    }

    public void setQuestionSeven(String questionSeven) {
        this.questionSeven = questionSeven;
    }


    public String getQuestionEight() {
        return questionEight;
    }

    public void setQuestionEight(String questionEight) {
        this.questionEight = questionEight;
    }


    public String getQuestionNine() {
        return questionNine;
    }

    public void setQuestionNine(String questionNine) {
        this.questionNine = questionNine;
    }


    public String getQuestionTen() {
        return questionTen;
    }

    public void setQuestionTen(String questionTen) {
        this.questionTen = questionTen;
    }

    public Question() {
    }

    public Question(Integer termId, String questionOne, String questionTwo, String questionThree, String questionFour, String questionFive, String questionSix, String questionSeven, String questionEight, String questionNine, String questionTen) {
        this.termId = termId;
        this.questionOne = questionOne;
        this.questionTwo = questionTwo;
        this.questionThree = questionThree;
        this.questionFour = questionFour;
        this.questionFive = questionFive;
        this.questionSix = questionSix;
        this.questionSeven = questionSeven;
        this.questionEight = questionEight;
        this.questionNine = questionNine;
        this.questionTen = questionTen;
    }

    @Override
    public String toString() {
        return "Question{" +
                "questionId=" + questionId +
                ", termId=" + termId +
                ", questionOne='" + questionOne + '\'' +
                ", questionTwo='" + questionTwo + '\'' +
                ", questionThree='" + questionThree + '\'' +
                ", questionFour='" + questionFour + '\'' +
                ", questionFive='" + questionFive + '\'' +
                ", questionSix='" + questionSix + '\'' +
                ", questionSeven='" + questionSeven + '\'' +
                ", questionEight='" + questionEight + '\'' +
                ", questionNine='" + questionNine + '\'' +
                ", questionTen='" + questionTen + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Question question = (Question) o;

        if (questionId != question.questionId) return false;
        if (termId != null ? !termId.equals(question.termId) : question.termId != null) return false;
        if (questionOne != null ? !questionOne.equals(question.questionOne) : question.questionOne != null)
            return false;
        if (questionTwo != null ? !questionTwo.equals(question.questionTwo) : question.questionTwo != null)
            return false;
        if (questionThree != null ? !questionThree.equals(question.questionThree) : question.questionThree != null)
            return false;
        if (questionFour != null ? !questionFour.equals(question.questionFour) : question.questionFour != null)
            return false;
        if (questionFive != null ? !questionFive.equals(question.questionFive) : question.questionFive != null)
            return false;
        if (questionSix != null ? !questionSix.equals(question.questionSix) : question.questionSix != null)
            return false;
        if (questionSeven != null ? !questionSeven.equals(question.questionSeven) : question.questionSeven != null)
            return false;
        if (questionEight != null ? !questionEight.equals(question.questionEight) : question.questionEight != null)
            return false;
        if (questionNine != null ? !questionNine.equals(question.questionNine) : question.questionNine != null)
            return false;
        if (questionTen != null ? !questionTen.equals(question.questionTen) : question.questionTen != null)
            return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = questionId;
        result = 31 * result + (termId != null ? termId.hashCode() : 0);
        result = 31 * result + (questionOne != null ? questionOne.hashCode() : 0);
        result = 31 * result + (questionTwo != null ? questionTwo.hashCode() : 0);
        result = 31 * result + (questionThree != null ? questionThree.hashCode() : 0);
        result = 31 * result + (questionFour != null ? questionFour.hashCode() : 0);
        result = 31 * result + (questionFive != null ? questionFive.hashCode() : 0);
        result = 31 * result + (questionSix != null ? questionSix.hashCode() : 0);
        result = 31 * result + (questionSeven != null ? questionSeven.hashCode() : 0);
        result = 31 * result + (questionEight != null ? questionEight.hashCode() : 0);
        result = 31 * result + (questionNine != null ? questionNine.hashCode() : 0);
        result = 31 * result + (questionTen != null ? questionTen.hashCode() : 0);
        return result;
    }
}
